var SELECTED = "selectableElementSelected";

var selector = {
    selected : null,

    select : function(element, callback){
        //clear previous highlight
        if (this.selected != null)
        {
            this.selected.removeClass(SELECTED);
        }

        this.selected = element;
        this.selected.addClass(SELECTED);

        callback.call();
    }
};